package com.towexin.application.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.towexin.application.system.domain.Authority;
import java.util.List;
import java.util.Map;

public interface AuthorityService extends IService<Authority> {
    boolean saveOrUpdateAuthority(Authority authority);

    boolean deleteCascadeId(String id);

    List<Map<String, Object>> selectAuthorityTree(boolean flag);

    List<Map<String, Object>> selectAllMap();

    String checkMenu(String pId);

    List<Authority> selectByUserName(String username);
    List<Authority> selectByRid(String rId);

    List<String> selectMarkAndDefaultRoleByUserName(String username);
}
